package com.example.demo.Server.impl;

import com.example.demo.Server.CompanyServer;
import com.example.demo.entity.Company;
import com.example.demo.mapper.Company_Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;


@Service
public class Company_impl implements CompanyServer {

    @Autowired
    private Company_Mapper company_mapper;
    @Override
    public ArrayList<Company> select_compny() {
        return company_mapper.select_Company();
    }

    @Override
    public ArrayList<Company> select_compny_by_name(String name) {
        return company_mapper.select_compny_by_name(name);
    }
}
